package thinkinjava1.ch10;

import java.io.BufferedInputStream;
import java.io.DataInputStream;
import java.io.IOException;

/**
 * Created by BobbyGu on 2017/2/23.
 */
public class Echo {
    public static void main(String[] args) {
        DataInputStream in =
                new DataInputStream(
                        new BufferedInputStream(System.in));
        String s;
        try {
            while ((s = in.readLine()).length() != 0)
                System.out.println("hi," + s);
// An empty line terminates the program
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
